package com.easytext.client;

import com.easytext.repository.api.TextRepository;

import java.util.ServiceLoader;

/**
 * @author caifan
 * @created 2021/12/2
 * @description:
 */
public class Client {

    public static void main(String... args) {
        TextRepository repository = ServiceLoader.load(TextRepository.class)
                .iterator().next();

        repository.findText("HHGTTG").wordcount();
    }
}
